<?php
/**
 * Created by PhpStorm.
 * User: ls721
 * Date: 2016/10/27 0027
 * Time: 20:33
 */class Model_Notice extends PhalApi_Model_NotORM {
    public function getAllNotice()
    {
        return $this->getORM()->select('id as NoticeId','Notice','URL')->fetchRows();
    }
    public function getNotice($Notice_id)
    {
        return  $this->getORM()->select('id as NoticeId','Notice','URL')->where('id',$Notice_id)->fetchRows();
    }

    protected function getTableName($id) {
        return 'Notice';
    }
}